package org.anjan.dp.decorator.coffeesample;

/**
 * Created by chebbaso on 12/4/14.
 */
public class CreamTopping extends ToppingDecorator {
    public CreamTopping(Ingredient ingredient) {
        super(ingredient);
    }

    @Override
    public String getDescription() {
        return super.getDescription() + " cream";
    }

    @Override
    public Double getCost() {
        return super.getCost() + 0.9;
    }
}
